package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.OwnerType;
import com.dragon.modules.yuegou.enums.product.SeckillStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 秒杀活动信息表实体类<br>
 * 对应的表为：pro_seckill<br>
 * 
 * @author pbuilder generated
 * @date 2020-09-01 16:30:42
 * @company sgy
 * @version 2.0
 */
@TableName("pro_seckill")
@ApiModel(description = "秒杀活动信息表")
public class SeckillEntity {

    /**  */
	protected String id;

    /** 集团ID */
	@ApiModelProperty("集团ID")
	protected String groupId;

    /** [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT */
	@ApiModelProperty("[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT")
	protected OwnerType ownerType;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** SPUID */
	@ApiModelProperty("SPUID")
	protected String spuId;

    /** SKUID */
	@ApiModelProperty("SKUID")
	protected String skuId;

    /** 秒杀名称 */
	@ApiModelProperty("秒杀名称")
	protected String title;

    /** 海报图片 */
	@ApiModelProperty("海报图片")
	protected String posterImg;

    /** 秒杀展示开始时间 */
	@ApiModelProperty("秒杀展示开始时间")
	protected LocalDateTime viewBeginTime;

    /** 秒杀展示结束时间 */
	@ApiModelProperty("秒杀展示结束时间")
	protected LocalDateTime viewEndTime;

    /** 秒杀开始时间 */
	@ApiModelProperty("秒杀开始时间")
	protected LocalDateTime beginTime;

    /** 秒杀结束时间 */
	@ApiModelProperty("秒杀结束时间")
	protected LocalDateTime endTime;

    /** [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE */
	@ApiModelProperty("[枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE")
	protected SeckillStatus status;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime createdTime;

    /**  */
	protected String modifiedBy;

    /**  */
	protected LocalDateTime modifiedTime;

    /**  */
	protected Boolean del;

    /**  */
	protected String delBy;

    /**  */
	protected LocalDateTime delTime;

	/**
	 * 构造一个空秒杀活动信息表实体对象
	 */
	public SeckillEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个秒杀活动信息表实体对象
	 * 
	 * @param other 其它对象
	 */
	public SeckillEntity(SeckillEntity other){
		super();
     	this.id = other.id;
     	this.groupId = other.groupId;
     	this.ownerType = other.ownerType;
     	this.merchantId = other.merchantId;
     	this.busdId = other.busdId;
     	this.spuId = other.spuId;
     	this.skuId = other.skuId;
     	this.title = other.title;
     	this.posterImg = other.posterImg;
     	this.viewBeginTime = other.viewBeginTime;
     	this.viewEndTime = other.viewEndTime;
     	this.beginTime = other.beginTime;
     	this.endTime = other.endTime;
     	this.status = other.status;
     	this.createdBy = other.createdBy;
     	this.createdTime = other.createdTime;
     	this.modifiedBy = other.modifiedBy;
     	this.modifiedTime = other.modifiedTime;
     	this.del = other.del;
     	this.delBy = other.delBy;
     	this.delTime = other.delTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取集团ID
	 * 
	 * @return groupId 集团ID
	 */
	public String getGroupId() {
		return groupId;
	}
  	
	/**
	 * 设置集团ID
	 * 
	 * @param groupId 集团ID
	 */
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	/**
	 * 获取[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT
	 * 
	 * @return ownerType [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT
	 */
	public OwnerType getOwnerType() {
		return ownerType;
	}
  	
	/**
	 * 设置[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT
	 * 
	 * @param ownerType [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT
	 */
	public void setOwnerType(OwnerType ownerType) {
		this.ownerType = ownerType;
	}

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取SPUID
	 * 
	 * @return spuId SPUID
	 */
	public String getSpuId() {
		return spuId;
	}
  	
	/**
	 * 设置SPUID
	 * 
	 * @param spuId SPUID
	 */
	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}

	/**
	 * 获取SKUID
	 * 
	 * @return skuId SKUID
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置SKUID
	 * 
	 * @param skuId SKUID
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取秒杀名称
	 * 
	 * @return title 秒杀名称
	 */
	public String getTitle() {
		return title;
	}
  	
	/**
	 * 设置秒杀名称
	 * 
	 * @param title 秒杀名称
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 获取海报图片
	 * 
	 * @return posterImg 海报图片
	 */
	public String getPosterImg() {
		return posterImg;
	}
  	
	/**
	 * 设置海报图片
	 * 
	 * @param posterImg 海报图片
	 */
	public void setPosterImg(String posterImg) {
		this.posterImg = posterImg;
	}

	/**
	 * 获取秒杀展示开始时间
	 * 
	 * @return viewBeginTime 秒杀展示开始时间
	 */
	public LocalDateTime getViewBeginTime() {
		return viewBeginTime;
	}
  	
	/**
	 * 设置秒杀展示开始时间
	 * 
	 * @param viewBeginTime 秒杀展示开始时间
	 */
	public void setViewBeginTime(LocalDateTime viewBeginTime) {
		this.viewBeginTime = viewBeginTime;
	}

	/**
	 * 获取秒杀展示结束时间
	 * 
	 * @return viewEndTime 秒杀展示结束时间
	 */
	public LocalDateTime getViewEndTime() {
		return viewEndTime;
	}
  	
	/**
	 * 设置秒杀展示结束时间
	 * 
	 * @param viewEndTime 秒杀展示结束时间
	 */
	public void setViewEndTime(LocalDateTime viewEndTime) {
		this.viewEndTime = viewEndTime;
	}

	/**
	 * 获取秒杀开始时间
	 * 
	 * @return beginTime 秒杀开始时间
	 */
	public LocalDateTime getBeginTime() {
		return beginTime;
	}
  	
	/**
	 * 设置秒杀开始时间
	 * 
	 * @param beginTime 秒杀开始时间
	 */
	public void setBeginTime(LocalDateTime beginTime) {
		this.beginTime = beginTime;
	}

	/**
	 * 获取秒杀结束时间
	 * 
	 * @return endTime 秒杀结束时间
	 */
	public LocalDateTime getEndTime() {
		return endTime;
	}
  	
	/**
	 * 设置秒杀结束时间
	 * 
	 * @param endTime 秒杀结束时间
	 */
	public void setEndTime(LocalDateTime endTime) {
		this.endTime = endTime;
	}

	/**
	 * 获取[枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 * 
	 * @return status [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 */
	public SeckillStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 * 
	 * @param status [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 */
	public void setStatus(SeckillStatus status) {
		this.status = status;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedBy 
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedBy 
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedTime 
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedTime 
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 * 
	 * @return del 
	 */
	public Boolean getDel() {
		return del;
	}
  	
	/**
	 * 设置
	 * 
	 * @param del 
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 * 
	 * @return delBy 
	 */
	public String getDelBy() {
		return delBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delBy 
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

	/**
	 * 获取
	 * 
	 * @return delTime 
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delTime 
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

    public String toString() {
		return new StringBuilder().append("SeckillEntity{").
			append("id=").append(id).
			append(",groupId=").append(groupId).
			append(",ownerType=").append(ownerType).
			append(",merchantId=").append(merchantId).
			append(",busdId=").append(busdId).
			append(",spuId=").append(spuId).
			append(",skuId=").append(skuId).
			append(",title=").append(title).
			append(",posterImg=").append(posterImg).
			append(",viewBeginTime=").append(viewBeginTime).
			append(",viewEndTime=").append(viewEndTime).
			append(",beginTime=").append(beginTime).
			append(",endTime=").append(endTime).
			append(",status=").append(status).
			append(",createdBy=").append(createdBy).
			append(",createdTime=").append(createdTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",modifiedTime=").append(modifiedTime).
			append(",del=").append(del).
			append(",delBy=").append(delBy).
			append(",delTime=").append(delTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public SeckillEntity copy() {
		return new SeckillEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 集团ID */
	public static final String COL_GROUP_ID = "group_id";

    /** [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT */
	public static final String COL_OWNER_TYPE = "owner_type";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** SPUID */
	public static final String COL_SPU_ID = "spu_id";

    /** SKUID */
	public static final String COL_SKU_ID = "sku_id";

    /** 秒杀名称 */
	public static final String COL_TITLE = "title";

    /** 海报图片 */
	public static final String COL_POSTER_IMG = "poster_img";

    /** 秒杀展示开始时间 */
	public static final String COL_VIEW_BEGIN_TIME = "view_begin_time";

    /** 秒杀展示结束时间 */
	public static final String COL_VIEW_END_TIME = "view_end_time";

    /** 秒杀开始时间 */
	public static final String COL_BEGIN_TIME = "begin_time";

    /** 秒杀结束时间 */
	public static final String COL_END_TIME = "end_time";

    /** [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE */
	public static final String COL_STATUS = "status";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /**  */
	public static final String COL_MODIFIED_BY = "modified_by";

    /**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

    /**  */
	public static final String COL_DEL = "del";

    /**  */
	public static final String COL_DEL_BY = "del_by";

    /**  */
	public static final String COL_DEL_TIME = "del_time";
}
